<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="css/bootstrap.css">
		<link rel="stylesheet" href="css/ol.css" type="text/css">
		<script src="js/jquery.js"></script>
		<script src="js/bootstrap.js"></script>
		<script src="js/ol-debug.js"></script>
		<script type="text/javascript">
			/*var a = {'aa':function(){return "bb"},'bb':'c'}; //'a' 引号可以不加
			var aa= new Array();
			aa[0] = 1;
			aa[3]=2;
			alert(a['aa']());//必需加 '' ""
			function remove(b){
				alert(b.bb);
			}
			
			function show(){
				$('#example').popover('show');
			}*/
			
/*			var arr = [[0,0],[1,1]];
			arr.pop();
			console.log(arr);
			
			function parent(a){
				//
				var bb =3;
				this.a = a;
				function show(){
					alert(a);
				}
			}
			parent.prototype.show = function(){
				alert(this.a);
			}
			function child(a){
				parent.call(this,a);
			}
			child.prototype = new parent();
			child.prototype.show = function(){
				alert("child");
			}
			var ch = new child(2);
			ch.show();
			var pa = new parent("parent");
			pa.show();*/
			/*var obj1 = {
				name: 'Byron',
				fn : function(){
					console.log(this);
				}
			};
			
			var fn2 = obj1.fn;
			fn2();*/
		/*	var angle = 0;
			if(Math.PI/6 < angle && angle < (Math.PI/3)){
				alert(angle);
			}*/
			
			var test1=function(){
				return {
					a1 : function(){
						this.b1 = "ba";
						alert("a1");
					}
				};
			}
			var cc = test1();
			var test=function(b1){
				this.b1 = b1;
				this.a1 = function(){
					alert("a1");
				};
			};
			test.prototype.b2 = "a";
			test.prototype.a2 = function(){
				alert(this.b1);
			};
			
			var child = function(){
				test.call(this);
				this.a1 = function(){
					alert("a2");
				};
			};
			child.prototype = new test("ba");
			
			var child_1 = function(a){
				this.a = a;
				child.call(this);
			};
			child_1.prototype = new child();
			var cc = new child_1(1);
			var bb = new child();
			bb.a1();
		/*	alert(bb.b1);
			alert(bb.__proto__.b1);
			alert(bb.b2);
			alert(bb.constructor)*/
		</script>
	</head>

	<body <!--onload="alert(aa[3])"-->>
		
		<div id="" style="position: absolute; height: 0px; width: 0px;height: 0px; left: 0px; top: 0px; z-index: 700;">
			<span>aaa</span>
		</div>
		
	<a id="example" tabindex="0" onclick="show()" class="btn btn-lg btn-danger bs-docs-popover" role="button" data-toggle="popover" data-trigger="focus" title="" data-content="And here's some amazing content. It's very engaging. Right?" data-original-title="Dismissible popover">可消失的弹出框</a>
	</body>

</html>